package com.shigu.admin.common.enums;

import java.io.Serializable;

/**
 * 参数
 * Created by zhaohongbo on 17/7/10.
 */
public enum ParamType implements Serializable{

    INPUT("输入框",1),
    SELECT("下拉选择",2),
    DATA("时间框",3);

    ParamType(String title, int value) {
        this.title = title;
        this.value = value;
    }

    public static ParamType selByValue(int value){
        for(ParamType pt: ParamType.values()){
            if(pt.getValue()==value){
                return pt;
            }
        }
        return null;
    }
    private String title;

    private int value;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
}
